home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD ROM Paradise Collection 4
/
CD ROM Paradise Collection 4 1995 Nov.iso
/
system
/
dlxdr243.zip
/
DDIR.DOC
next >
Wrap
Text File
|
1994-12-12
|
14KB
|
343 lines
******************************************************************************
* *
* D e l u x e D i r *
* *
* Version 2.43 *
* *
******************************************************************************
Table of contents:
------------------
1. Program description
2. Validation
3. Requirements
4. Features
5. Installation
6. Program use and options
7. Comments
Appendix A: Version notes and additions
Appendix B: Contacting the author
1. Program description:
-----------------------
Deluxe Dir (DDIR) is an experimental Pascal program which turned out to
be quite a useful directory-lister program. The main advantage of DDIR
is that it lists the directory files in three columns, instead of the one
column used by the 'dir' command, yet showing the file sizes, which are
usually quite important and are not shown by the 'dir /w' command.
In addition, DDIR adds a few options which are described below, making
the directory screen appear more clearly and efficiently.
2. Validation:
--------------
In order to ensure that the file has not been altered, I'm including the
info that would be provided by McAfee's VALIDATE Ver. 2.00 program:
DDIR.EXE 15044 12-12-94 10:29p AA12 20D6
3. Requirements:
----------------
A. CGA or higher graphics adapter
B. 80286 or higher microprocessor
C. A hard disk
* This program has been tested on MS-DOS 3.1 and MS-DOS 6.2.
4. Features:
------------
* Directory is listed in three columns separated by two vertical lines.
* Executable files are highlighted.
* Compressed archive files appear in a different color.
* Hidden and system files are shown along with the regular files.
* The directory can be sorted primarily by filename, extension or size,
and the files are displayed in vertical order.
* Hebrew filenames can be shown in Hebrew characters.
* Wildcards are handled better than in the DIR command.
* File sizes may be shown in kilobytes.
* The '.' and '..' directory files are ignored.
* The directory files are pushed to the beginning or end of the list.
* The file sizes contain commas.
* Zero length files are made to blink for easy detection.
* DDIR contains a detailed option which shows the file attributes,
dates, times and the size of the drive being listed.
* The number of files in the subdirectory, the size of the subdirectory
and the number of bytes free are displayed at the end of the directory.
5. Installation:
----------------
DDIR.EXE is the only file needed for the operation of DDIR. However,
In order for DDIR to be able to run from any path, one of two methods
must be used:
A. The PATH method:
1. Copying DDIR.EXE to a subdirectory on the hard disk.
For example, if the source is drive a: and the target is the
'utils' subdirectory, tyep the following line from the DOS prompt:
'copy a:ddir.exe c:\utils'
2. Including the subdirectory in the PATH environment variable.
For example, include the following line in your AUTOEXEC.BAT:
'path c:\;c:\utils'
B. The ALIAS method (recommended):
1. Copying DDIR.EXE to a subdirectory on the hard disk. (look above)
2. Running an alias program like DOSKEY, giving DDIR a very short
alias like '-'. (The alias could also include default command
line switches.)
For example, include the following line in your AUTOEXEC.BAT:
'c:\dos\doskey -=c:\utils\ddir.exe /e $*'
6. Program use and options:
---------------------------
The command line syntax for DDIR is:
>ddir [/para] [/para] [drive][path] [/para] [/para]
(In case the alias method is being used, use '-' instead of 'ddir',
or whichever alias has been installed.)
All of the parameters of DDIR are optional, and when a parameter is not
specified, DDIR automatically chooses the default option. All the parameters
must be preceded by a slash, and separated by spaces. Each time a parameter
is specified, it inverts the last state of the option it stands for.
Therefore, a parameter has to be specified an odd number of times in order
to be effective. The default drive and path for DDIR are the current drive
and the current path. Its default wildcards are the same as DOS's default
wildcards (*.*).
These are the parameters that represent the options of DDIR:
/C - This option allows the omission of commas in the file sizes and
the bottom statistics. It is mainly made for users who need faster
speed.
/D - The detailed option shows the files in one column, thus allowing to
add display of files' attributes and dates, and the size of the
drive being listed.
The abbreviations for the files' attributes are:
H - hidden; R - read-only; S - system; A - archive
Scrolling of the screen is performed by these keys:
PgUp - Scrolls one page up.
PgDn, Space and Enter - Scroll one page down.
Home - Jumps to the beginning of the list.
End - Jumps to the end of the list.
The Space and Enter keys are for scanning the list from beginning
to end, and returning to DOS after viewing the last page.
Changing drives:
When the detailed display is active, the path can be changed to the
current path of a certain drive, by pressing the CTRL key and the
drive letter simultaneously. DDIR will then show the new directory,
according to all the other options specified at the command line.
/E - Sorts the files primarily by their extension. Please note that the
default option sorts the files primarily by name, but sorts their
extension too. This option sorts files of the same extension by
their name. (Cannot be used with /Z)
/H - This option was made for Israeli users who use Einstein
HebrewWriter or any other program that makes pseudo Hebrew
filenames using the IBM extended character set. When this switch
is active, the program will translate these characters to Hebrew
characters.
/I - Used in order to enter wildcards. The acceptable wildcards are
asterisks and question marks. Asterisks represent (as usual)
a sequence of zero or more letters, but question marks stand for
EXACTLY one character (which is different from DIR's). Wildcards
with both asterisks and question marks are not allowed. (Cannot
be used with /X)
Examples:
>ddir /i*.exe
>ddir /i*exe
Both commands will show all EXE files.
>ddir /x*a.*
The command will NOT show all files whose filename ends with an 'A'.
/K - Shows the file sizes in kilobytes instead of bytes. (The size in
bytes is always rounded upwards). This option helps figure out the
proportions between sizes of files, and see how much space a
certain file occupies. (Usually, a file occupies a multiple of
2 Kb's on fixed disks, and a multiple of 1 Kb on floppy disks).
/L - Displays files in lower case characters, leaving the first one
capitalized.
/P - Pushes directory files to the end of the list: Sometimes it is more
convenient to see the directories while typing a command, by moving
them to the end of a long list of files. This option is active only
when sorting is active.
/R - Reverses the order of sort to descending sort. It is especially
useful for size sort.
/S - Skips sorting of files and shows them by DOS order. This option is
needed only when greater speed is desired, or when the actual order
of the files of a certain directory needs to be shown.
/T - This option disables the text mode changes at the beginning and end
of program execution. It is needed only for EGA/VGA users who use
special TSR program drivers or unique pallettes.
/V - Enables snow checking for old video adapters: Some old CGA's and
other graphics adapters produce an effect called 'snow' when
characters are output directly to the screen. If such a 'snowing'
effect occurs, this option should be specified.
/W - Swaps the position of the day and the month in the detailed
option's file dates for country compatibility. The month is
displayed by letters.
/X - Excludes files matching the following wildcards. Used exactly
like /I. (Cannot be used with /I)
/Z - Sorts files by their size from small to large. (Cannot be used
with /E)
/? - This option shows a title screen and a summary of the allowed
options.
Abortion: DDIR can be terminated whenever it is waiting for a key press
by pressing the <Esc> button.
Exit codes: DDIR uses the following exit codes:
3: when an error occurs
2: when DDIR has been terminated
1: when help has been requested
0: otherwise
7. Comments:
------------
* The programmer disclaims any responsibility for damage caused by this
program, though the program does not write on or change the contents of
any device it reads from, and does not stay resident in memory.
* Any suggestions or comments about the program will be gratefully
accepted.
* This program may be distributed as long as its contents are not changed
and no fee is charged. (The ZIP form is more recommended for
distribution.)
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
App. A: Version Notes And Additions:
------------------------------------
2.43: Improves comma additions for large file sizes, improves coloring,
highlights compressed archives, fixes a bug in wildcard parsing
and improves Ctrl-C/Break detection.
2.42: Allows using both /L and /H, speeds up the /L routine, has a better
help screen, a better parameter parsing method, wider display and
better error handling. Different drives can be viewed by a CTRL-key
command.
2.41: Improves the detailed option: displays files' month in letters, and
adds page-leap scroll. Also fixes display bugs in version 2.40.
2.40: Introduces its own wildcard parsing routine, instead of DOS's
routine, which doesn't work correctly. Also adds title, displaying
of path and wildcard selection, and displaying of directory
filenames' extensions in parentheses.
2.31: Improves Hebrew display, blinks zero length files, adds an
option for lower case characters and no longer highlights .COM
.BAT and .EXE files which are also system files, as they are not
executable from the command line.
2.30: Adds sort by size and descending sort. Improved display. Adds
abortion with <Esc>. Fixes a bug when a color graphics adapter
is not present. Stricter parameter checking.
2.24: Adds time display and allows swapping the day and month
position of the dates (all in the detailed option).
2.23: Allows canceling of program text mode changes.
2.22: Returns to original text mode, allows snow checking.
2.21: Adds an option to omit commas, and fixes some bugs which occurred
only in ver. 2.20.
2.20: Improved screen usage in small directories, adds extension
sort, allows skipping sort, adds an option for pushing directory
files to the end of the list, and adds commas to file sizes.
2.12: Improved path and current directory handling.
2.11: Fixes a little bug with empty disks which have no volume label
and improves error messages.
2.10: Adds Hebrew support to Einstein HebrewWriter style filenames.
2.00: Sorts filenames and enhances executable ones. (Initial release)
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
App. B: Contacting the author:
------------------------------
Mail address:
Oren Souroujon
Hanasi Harishon St. 38/29
Rehovot, 76302
ISRAEL
E-Mail Internet address:
LISOURO@weizmann.weizmann.ac.il
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=